package cn.yunhe.service.impl;

import cn.yunhe.dao.IUserDao;
import cn.yunhe.pojo.User;
import cn.yunhe.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    IUserDao userDao;

    public List<User> queryAll() {
        return userDao.queryAll();
    }

    public User queryById(int id) {
        return userDao.queryById(id);
    }
}
